package com.sun;

import com.sun.api.Jedis;
import com.sun.connection.Connection;

/**
 * @author 烛龙神
 * @Description TODO
 * @date 2021-04-07 22:31
 */
public class RedisTest2 {

    public static void main(String[] args)
    {
        Jedis jedis = new Jedis("localhost",6379);
        for(int i = 0;i<1000000000;i++)
        {
            jedis.set("monkey"+ i,"monkey2021"+i);
            System.out.println(jedis.get("monkey" + i));
        }
        jedis.set("lion","8888");
        System.out.println(jedis.get("lion"));

    }
}
